<?php

class WaybillNormalModel extends BaseModel
{
	var $table  = 'waybill_sub_normal';
	var $prikey = 'ws_tid';
	var $_name  = 'waybillnormal';
	var $_relation  = array(
	    'belongs_to_waybill' => array(
	            'model'         => 'waybill',
	            'type'          => BELONGS_TO,
	            'foreign_key'   => 'wm_tid',
	            'reverse'       => 'has_normal',
		),
	);
}
?>